/*******************************************************************************
 * Project Key : CPPII
 * Create on 2018-01-20 18:03:622
 * Copyright (c) 2008 - 2019.银盛支付服务股份有限公司版权所有. 粤ICP备14098269
 * 注意：本内容仅限于银盛支付服务股份有限公司内部传阅，禁止外泄以及用于其他的商业目的
 ******************************************************************************/
package org.jeecg.modules.yinsheng.utils;

/**
 * 银盛渠道自定义异常
 */
public class YsChannelClientException extends Exception {

	private static final long serialVersionUID = -3133804558713772737L;

	private String code;

	private String msg;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public YsChannelClientException(String message) {
		super(message);
		this.msg = message;
	}

	public YsChannelClientException(YsChannelEnum ysChannelEnum, Throwable cause) {
		super(ysChannelEnum.getMessage(), cause);
		this.msg = ysChannelEnum.getMessage();
		this.code = ysChannelEnum.getCode();
	}

	public YsChannelClientException(String message, Throwable cause) {
		super(message, cause);
		this.msg = message;
	}

	public YsChannelClientException(String code, String msg, Throwable e) {
		super(msg, e);
		this.code = code;
	}

	public YsChannelClientException(String code, String msg) {
		super(msg);
		this.code = code;
	}

}
